<?php

require_once '../../includefiles.php';
require_once '../../model/state.php';

$stateObj = new Model_State();

if($_GET['postalcode'])
{
	$postalcode = $_GET['postalcode']; 
	$getpostalcodedetail = $stateObj->getPostalDetailsByPostalCode($postalcode);
	if($getpostalcodedetail)
		echo $getpostalcodedetail['lat'].",".$getpostalcodedetail['lon'];
	else
		echo "0";	
}

?>
